package com.jic.market.request.rest.discount;

import com.jic.common.base.vo.AdminOperate;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author yinhaijun
 * @date: 2020/4/28
 */
@Data
public class DiscountOrderCreateRequest {
    private AdminOperate adminOperate;
    @NotBlank(message = "用户id不能为空")
    @ApiModelProperty(notes = "第三方用户id", required = true)
    private String thirdUserId;

    @ApiModelProperty(notes = "父订单号", required = false)
    private String parentOrderNo;

    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty(notes = "创建时间", required = true)
    private Date orderCreateTime;

    @Valid
    @NotEmpty(message = "子订单不能为空")
    @ApiModelProperty(notes = "子订单", required = true)
    private List<DiscountSubOrderRequest> discountSubOrderRequestList;
}
